package org.jeecg.modules.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.entity.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: db_contract
 * @Author: jeecg-boot
 * @Date:   2024-06-13
 * @Version: V1.0
 */
@Data
@TableName("db_contract")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="db_contract对象", description="db_contract")
public class DbContract extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**合同编号*/
	@Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private java.lang.String contractId;
	/**合同名称*/
	@Excel(name = "合同名称", width = 15)
    @ApiModelProperty(value = "合同名称")
    private java.lang.String name;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private java.lang.String cusName;
    /**合同类型*/
    @Excel(name = "合同类型",dicCode = "contract_type", width = 15)
    @ApiModelProperty(value = "合同类型")
    @Dict(dicCode = "contract_type")
    private java.lang.Integer type;
	/**签订日期*/
	@Excel(name = "签订日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "签订日期")
    private LocalDate signatureDate;
	/**合同金额*/
	@Excel(name = "合同金额", width = 15)
    @ApiModelProperty(value = "合同金额")
    private BigDecimal contractAmount;
	/**开票金额*/
	@Excel(name = "开票金额", width = 15)
    @ApiModelProperty(value = "开票金额")
    private BigDecimal invoiceAmount;
	/**返回金额*/
	@Excel(name = "返回金额", width = 15)
    @ApiModelProperty(value = "返回金额")
    private BigDecimal returnedAmount;
	/**附件*/
	@Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private java.lang.String fileGroupId;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String note;
    @TableField(exist = false)
    @ApiModelProperty(value = "文件ids")
    private List<String> fileIds;

    /**估算人天*/
    @Excel(name = "估算人天", width = 15)
    @ApiModelProperty(value = "估算人天")
    private Integer estimatedManDays;
    /**估算单价*/
    @Excel(name = "估算单价", width = 15)
    @ApiModelProperty(value = "估算单价")
    private BigDecimal estimatedPrice;
    /**估算金额*/
    @Excel(name = "估算金额", width = 15)
    @ApiModelProperty(value = "估算金额")
    private BigDecimal estimatedAmount;
    /**签订人天*/
    @Excel(name = "签订人天", width = 15)
    @ApiModelProperty(value = "签订人天")
    private BigDecimal contractedManDays;
    /**签订单价*/
    @Excel(name = "签订单价", width = 15)
    @ApiModelProperty(value = "签订单价")
    private BigDecimal contractedPrice;
    /**签订金额*/
    @Excel(name = "签订金额", width = 15)
    @ApiModelProperty(value = "签订金额")
    private BigDecimal contractedAmount;
    /**交付进度*/
    @Excel(name = "交付进度", width = 15)
    @ApiModelProperty(value = "交付进度")
    private Float  deliveryProgress;
    /**回款进度*/
    @Excel(name = "回款进度", width = 15)
    @ApiModelProperty(value = "回款进度")
    private Float  paymentProgress;
}
